package com.lightboat.system.domain.request;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.lightboat.common.annotation.Excel;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

/**
 * 客户订单查询参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CustomerOrderQueryRequest implements Serializable {


    /** 订单类别（1系统 2复购） */
    @SchemaProperty(name = "订单类别（1系统 2复购）")
    @Excel(name = "订单类别", readConverterExp = "1=系统,2=复购")
    private Integer orderType;


    /** 客户ID */
    @SchemaProperty(name = "客户ID")
    private Long customerId;

    /**
     * 搜索值
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @TableField(exist = false)
    @SchemaProperty(name = "搜索值")
    private String searchValue;


    @TableField(exist = false)
    /** 请求参数 */
    @SchemaProperty(name = "请求参数")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;


}
